package com.um.jdy.common.platform.code;

import com.um.springboot.starter.utils.EnumUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 平台相关错误代码
 * @author cs
 * 日期 2023/5/27
 * 版权所有 广州优匠科技有限公司
 */
@Getter
@AllArgsConstructor
public enum PlatformCode implements EnumUtil.ErrorEnum {

    NotAgent(17010, "您还不是代理商!"),
    CashoutDisable(17011, "余额提现未启用!"),
    LessMinimum(17012, "少于最小提现金额!"),
    ExceedMaximum(17013, "超过最大提现金额!"),
    ExceedMaximumTimes(17014, "超过最大提现次数!"),
    NoBalance(17015, "可提现余额不足!"),
    NoCashout(17016, "提现记录不存在!"),
    CashoutApproved(17017, "该提现已审批"),
    NotMerchant(17018, "您还不是运营商!"),
    NotSharing(17019, "您还不是分成人员!"),
    MerchantNotExist(17020, "运营商不存在!"),
    SharingNotExist(17021, "分成人员不存在!"),

    AlreadyIsAgent(17022, "申请失败，您已经是代理商！"),
    AlreadyIsMerchant(17023, "申请失败，您已经是运营商！"),
    AlreadyIsSalesman(17024, "申请失败，您已经是业务员！"),
    AlreadyApply(17025, "申请失败，您已提交过申请！"),

    InvalidAgent(17026, "代理商无效！"),

    UnsupportedPaymentMethod(17027, "暂不支持该付款方式!"),

    DeleteSalesmanFailed(17028, "删除失败，该业务员还有佣金未提现!"),
    DeleteMerchantFailed(17029, "删除失败，该运营商还有佣金未提现!"),
    DeleteAgentFailed(17030, "删除失败，该代理商还有佣金未提现!"),
    AgentNotExist(17031, "代理商不存在!"),
    ApplyNotExist(17032, "申请不存在！"),
    CannotBeModified(17033, "操作失败，无法修改申请！"),
    AppNotSetting(17034, "应用未设置信息！"),
    NoSelectBank(17035, "请选择银行！"),
    AlreadyIsBank(17036, "该银行卡已绑定！"),
    BankCashoutDisable(17037, "银行卡提现未启用!"),
    WechatCashoutDisable(17038, "微信提现未启用!"),
    ExceedSingleMaximum(17039, "超过单次最大提现金额!"),
    ExceedDayMaximum(17040, "超过单天最大提现金额!"),
    SingleMaxExceedDayMaximum(17041, "单次最大提现金额超过单天最大提现金额!"),

    PackageNotExist(17051, "平台未购买套餐!"),
    PlatformNotExist(17052,"平台不存在！"),
    RolesNoSelected(17053,"请设置用户的角色！"),
    CompnayUserNotExist(17054,"平台用户不存在！"),
    DomainExist(17055,"分配域名已存在"),
    UserDomainExist(17056,"绑定域名已存在"),
    DomainIncludeExist(17057,"绑定域名在分配域名中已存在！"),
    UserDomainIncludeExist(17058,"分配域名在绑定域名中已存在！"),
    NotAgentOrMerchant(17059, "您还不是运营商!"),
    VenderExist(17060,"厂商标识已存在！"),
    IncludeInvalidCode(17061,"不能包含不合法的字符：*！"),
            ;



    private Integer code;
    private String msg;
}
